import './assets/base.scss'
import pinia from './stores'
import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import 'element-plus/dist/index.css'
import 'element-plus/theme-chalk/dark/css-vars.css'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
import '@icon-park/vue/styles/index.css'
//导入进度条插件\js与css
import 'nprogress/nprogress.css'
const app = createApp(App)
app.use(router)
app.use(pinia)

// 全局注册icon
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component)
}
// 设置全局错误处理程序
// app.config.errorHandler = (err: any) => {
//   console.error(err.data)
// }
app.mount('#app')
